//
// Created by lenovo on 2024/1/11.
//

#ifndef CALCULATOR_SLICER_H
#define CALCULATOR_SLICER_H

#include <utility>
#include <vector>
#include <string>
#include "../import.h"

class Slicer {
protected:
public:
    std::vector<std::string> words ;
    std::string material ;
    bool _done {false};
    void parse() ;
    void rowSplit() ; //初步切分
    void funcSplit() ;
    void dotSplit() ;
public:
    explicit Slicer(std::string material) : material(std::move(material)) {}
    std::vector<std::string> result() ;
};


#endif //CALCULATOR_SLICER_H
